{% extends app.request.isXmlHttpRequest ? "PopshouseSiteBundle::blank.html.twig" : "PopshouseSiteBundle::layout.html.twig" %}


{% block script %}
<script type="text/javascript" src="{{ asset('js/tiny_mce/jquery.tinymce.js') }}"></script>
<script type="text/javascript">
$(function() {
    $('textarea').tinymce({
            // Location of TinyMCE script
            script_url : '{{ asset('js/tiny_mce/tiny_mce.js') }}',
            language : "{{ app.session.locale }}",
            // General options
            theme : "advanced",
            plugins : "emotions,inlinepopups,contextmenu,directionality,fullscreen,noneditable,preview",
            skin : "o2k7",
            skin_variant : "black",
            // Theme options
            theme_advanced_buttons1 : "bold,italic,underline|,emotions,|,justifyleft,justifycenter,justifyright,|,outdent,indent,blockquote,|,undo,redo,|,preview,fullscreen",
            theme_advanced_buttons2 : "",
            theme_advanced_buttons3 : "",
            relative_urls : true,
            theme_advanced_toolbar_location : "top",
            theme_advanced_toolbar_align : "left",
            theme_advanced_statusbar_location : "bottom",
            theme_advanced_path : false,
            theme_advanced_resizing : true,
            width : "600",
            height: "130",
            
            content_css : "{{ asset('css/textbox.css') }}"

    });
});
</script>
{% endblock %}

{% block content %}

<div class="content">
	 <div class="scrollbox" style="height:580px;">
		    <div class="guestbook">
			<div class="sign">
				<h1>{{ "teken" | trans({},"guestbook") | raw }}</h1>
		        {% include "PopshouseSiteBundle:Guestbook:form.html.twig" %}
			</div>
			{% if original is not none %}
		    <h2>Reactie op:</h2>
		    <ol class="entries">
		       {% include "PopshouseSiteBundle:Guestbook:entry.html.twig" with {'entry':original, 'last': true} %}
		    </ol>
		{% endif %}
		</div>
	</div>
	{% include "PopshouseSiteBundle::arrows.html.twig" %}
</div>

{% endblock %}
